Skip to content

Conversation

@wrigh393
Copy link
Collaborator

Closes #152

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues with the code at this point. Per #152 (comment) this architecture will e replaced with a new approach.

@@ -98,6 +98,11 @@ export default function ItemTable({ data, rowCanBeSelected, loading }) {
);
const { getTableProps, getTableBodyProps, headerGroups, rows, prepareRow, } = tableInstance;

//Sets filteredItems length when items are filtered from the table/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add space between comment marker and comment content.

- //Sets...
+ // Sets...

setValue={setSelectedQueues}
/>
</Box>
<ItemCounter filteredItems={filteredItems} totalItems={items.length} />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be better to use the autocalculated value from the react-table instance inside ItemTable than the derived value from here to insure the count is kept in sync with what the UI reflects.

@campb303
Copy link
Collaborator

Closing to be replaced with another branch.

@campb303 Justin Tyler Campbell (campb303) deleted the enhancement-show-total-items branch July 30, 2021 17:01
Sign in to join this conversation on GitHub.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show total loaded and total filtered items in ItemTable

2 participants